package com.oop.demo05;
//继承数快捷键：ctr+h
public class Application {
    public static void main(String[] args) {
        Student student = new Student();
        student.say();                  //继承了父类的公共的方法
        student.setMoney(1000);         //通过set设置属性
        int money = student.getMoney();      //继承了父类的（私有的）属性
        System.out.println(money);
    }
}
